package notes.java.sjms23.t11_adapter;

// 适配器
// 相当于转换器
public class Adapter extends Adaptee implements Target{

    private Target target;
    public Adapter(Target target) {
        this.target = target;
    }
    
    @Override
    public void desc() {
        adapteeDesc();
        target.desc();
        System.out.println("适配成功");
    }

}
